package com.ruoyi.transaction.service.impl;

import java.util.List;

import com.ruoyi.common.utils.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.transaction.mapper.TransactionPayMapper;
import com.ruoyi.transaction.domain.TransactionPay;
import com.ruoyi.transaction.service.ITransactionPayService;
import com.ruoyi.common.core.text.Convert;

/**
 *  服务层实现
 * 
 * @author ruoyi
 * @date 2019-05-07
 */
@Service
public class TransactionPayServiceImpl implements ITransactionPayService 
{
	@Autowired
	private TransactionPayMapper transactionPayMapper;

	/**
     * 查询信息
     * 
     * @param id ID
     * @return 信息
     */
    @Override
	public TransactionPay selectTransactionPayById(Long id)
	{
	    return transactionPayMapper.selectTransactionPayById(id);
	}
	
	/**
     * 查询列表
     * 
     * @param transactionPay 信息
     * @return 集合
     */
	@Override
	public List<TransactionPay> selectTransactionPayList(TransactionPay transactionPay)
	{
	    return transactionPayMapper.selectTransactionPayList(transactionPay);
	}
	
    /**
     * 新增
     * 
     * @param transactionPay 信息
     * @return 结果
     */
	@Override
	public int insertTransactionPay(TransactionPay transactionPay)
	{
	    return transactionPayMapper.insertTransactionPay(transactionPay);
	}
	
	/**
     * 修改
     * 
     * @param transactionPay 信息
     * @return 结果
     */
	@Override
	public int updateTransactionPay(TransactionPay transactionPay)
	{
	    return transactionPayMapper.updateTransactionPay(transactionPay);
	}

	/**
     * 删除对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteTransactionPayByIds(String ids)
	{
		return transactionPayMapper.deleteTransactionPayByIds(Convert.toStrArray(ids));
	}
	
}
